package com.tbit.main.dao.core;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.main.pojo.UpKeep;
import com.tbit.main.pojo.VO.UpKeepQueryReqVO;
import com.tbit.main.pojo.VO.UpKeepRespVO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @author yao
 * @since 2025/1/22 17:20
 */
public interface UpKeepDao extends BaseMapper<UpKeep> {

    List<UpKeepRespVO> selectList(@Param("reqVO") UpKeepQueryReqVO reqVO);

    void cleanBatch(Collection<UpKeep> upKeeps);

    List<UpKeep> selectList2(@Param("accountId") Integer accountId, @Param("machineIds") List<Integer> machineIds);

    void insertBatch(@Param("upKeeps") List<UpKeep> upKeeps);
}
